package xyz.cerberu.cet.user.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author β世界
 * Created on 15:11
 * @Description
 */
@Component
@ConfigurationProperties(prefix = "minio")
public class MinIo {
    /** 是否开启 **/
    private boolean enable;
    /** 访问终端 **/
    private String endpoint;
    /** minio用户名 **/
    private String accessKey;
    /** minio的密码 **/
    private String secretKey;
    /** 图片存储的桶 **/
    private String pictureBucket;

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getPictureBucket() {
        return pictureBucket;
    }

    public void setPictureBucket(String pictureBucket) {
        this.pictureBucket = pictureBucket;
    }

    @Override
    public String toString() {
        return "MinIo{" +
                "endpoint='" + endpoint + '\'' +
                ", accessKey='" + accessKey + '\'' +
                ", secretKey='" + secretKey + '\'' +
                '}';
    }
}
